﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using AutoBackupDatabase.DAL;
using AutoBackupDatabase.ENT;
using System.Data;
namespace AutoBackupDatabase.BLL
{
    public class DETAILGROUPUSERROLEBLL
    {

         private DETAILGROUPUSERROLEDAL dal;
         public DETAILGROUPUSERROLEBLL()
       {
           dal = new DETAILGROUPUSERROLEDAL();
       }
         public bool INSERTDETAILGROUPUSERROLE(DETAILGROUPUSERROLEENT ent)
        {

            return dal.INSERTDETAILGROUPUSERROLE(ent);

        }
        public bool DELTELEDETAIL_GROUPUSER_ROLE(DETAILGROUPUSERROLEENT ent)
        {

            return dal.DELTELEDETAIL_GROUPUSER_ROLE(ent);

        }
        public bool DELETEDETAILROLEBYGROUPUSERID(int groupUserCode)
        {

            return dal.DELETEDETAILROLEBYGROUPUSERID(groupUserCode);

        }

        public List<DETAILGROUPUSERROLEENT> LOADROLEBYGROUPUSERCODE(int groupUserCode)
        {

            return dal.LOADROLEBYGROUPUSERCODE(groupUserCode);

        }

        public bool CHECKROLE(int groupUserCode, string roleCode)
        {
            return dal.CHECKROLE(groupUserCode, roleCode);
        }
    }
}
